package com.demo2do.fms.admin.service.supplier;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.demo2do.fms.admin.entity.security.Login;
import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.appraisal.AppraisalTemplate;

/**
 * 
 * @author houtao
 *
 */
public interface AppraisalTemplateService extends DataService<AppraisalTemplate> {
    
    /**
     * 
     * @return
     */
    public int count(Login login);
    
    public List<AppraisalTemplate> list(Login login);
    
    /**
     * @param login
     * @param page
     * @return
     */
    public List<AppraisalTemplate> list(Login login, Page page);
    
    /**
     * @param template
     * @param login
     */
    public void create(AppraisalTemplate template, Login login);
    
    /**
     * @param oldTemplate
     * @param changeTemplate
     * @param operator
     */
    public void edit(AppraisalTemplate oldTemplate, AppraisalTemplate changeTemplate, Long operator);
    
    /**
     * @param template
     * @param operator
     */
    public void delete(AppraisalTemplate template, Long operator);
    
}
